public class WhileExercise {
	public static void main(String[] args) {
		//化繁为简
		//先死后活
		int i = 1;
		int range = 100;
		int num = 3;
		while(i <= range) {
			if(i % num == 0){
				System.out.print(i + "\t");
			}
			i++;
		}


		int j = 40;
		int range2 = 200;
		int num2 = 2;
		while(j <= range2){
			if(j % num2 == 0){
				System.out.println(j + '\t');
			}
			j++;
		}
	}
}